import React from 'react';
import './cuxiaohuodong.css'
import Xinzeng from './xinzenghuodong'
import Huodongguanli from './huodongguanli'
import { Tabs } from 'antd';
import axios from 'axios'
const { TabPane } = Tabs;

function callback(key) {
    console.log(key);
}
class Huodong extends React.Component{
    constructor(){
        super();
        this.state={
            data:[]
        }
    }
    render(){
        return(
            <div>
                <div className="title">促销活动</div>
                <div className="twoTitle">活动管理</div>
                <Tabs defaultActiveKey="1" onChange={callback}>
                    <TabPane tab="新增活动" key="1">
                        <Xinzeng/>
                    </TabPane>
                    <TabPane tab="活动管理" key="2">
                        <Huodongguanli />
                    </TabPane>
                </Tabs>
            </div>

        )
    }
}

export default Huodong